package com.chen.blue.domain.dto.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created By CLT On 2024/4/29.
 */
@SuppressWarnings("all")
@Getter
@Setter
@ApiModel("部门添加参数")
public class DeptDto implements Serializable {


    private static final long serialVersionUID = 1L;
    /**
     * 部门名称
     */
    @Length(max = 30, message = "部门名称长度不能超过30")
    @NotBlank(message = "部门名称不能为空")
    @ApiModelProperty(value = "部门名称", required = true)
    private String name;

    /**
     * 父部门id
     */
    @NotNull(message = "父部门id不能为空")
    @ApiModelProperty(value = "父部门id", required = true)
    private Long parentId;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空")
    @ApiModelProperty(value = "显示顺序", required = true)
    private Integer sort;

    /**
     * 负责人
     */
    @ApiModelProperty(value = "负责人")
    private Long leaderUserId;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 部门状态（1正常 0停用）
     */
    @NotNull(message = "部门状态不能为空")
    @ApiModelProperty(value = "部门状态（1正常 0停用）", required = true)
    private Boolean status;


}
